package com.twu.biblioteca.view.command;

import com.google.inject.Inject;

import com.twu.biblioteca.controller.MovieController;
import com.twu.biblioteca.view.console.ConsoleViewController;

public class ReturnMovieCommand extends Command {
  private final MovieController controller;

  @Inject
  public ReturnMovieCommand(MovieController controller) {
    this.controller = controller;
  }

  @Override
  public void execute(ConsoleViewController viewController) {
    this.consoleWriter.display("Enter movie's title  to select a book: ");
    String title = this.consoleReader.readLine().trim();
    controller.returnMovie(title);
  }
}
